package com.bz.portal.controller;

import com.bz.portal.service.ItemCategoryService;
import com.bz.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/frontend/itemCategory")
public class ItemCategoryController {

    @Autowired
    private ItemCategoryService itemCategoryService;

    /**
     * 查询首页商品分类
     * @return
     */
    @GetMapping("/selectItemCategoryAll")
    public Result selectItemCategoryAll(){
        return itemCategoryService.selectItemCategoryAll();
    }
}
